﻿<%@ WebHandler Language="C#" Class="JoinValidCode" %>

using System;
using System.Web;

public class JoinValidCode : IHttpHandler
{
    private const int VALID_CODE_LENGTH = 4;
    private const string COOKIE_PREFIX = "VCode";

    public void ProcessRequest(HttpContext context)
    {
        FxhjpgWeb.WebSite.Code.ValidCode vcode = new FxhjpgWeb.WebSite.Code.ValidCode(context, COOKIE_PREFIX, VALID_CODE_LENGTH);
        vcode.Generate();
    }

    public bool IsReusable
    {
        get
        {
            return true;
        }
    }
}